package com.ch.szh.model;

import java.util.HashMap;
import java.util.Map;

//@Data
public class R {
    private int status;
    private String msg;

    private Object data = new Object();

    private R() {
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public R setData(Object data) {
        this.data = data;
        return this;
    }

    public static R ok() {
        R r = new R();
        r.setStatus(0);
        r.setMsg("success");
        return  r;
    }



}
